<%@ page language="java" contentType="text/html; charset=utf-8"
	pageEncoding="utf-8"%>
<%@taglib prefix="c" uri="http://java.sun.com/jstl/core_rt"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<title>员工基本信息</title>
<%@ include file="/common/common.jsp"%>
<script src="/scripts/system/employee_form.js" type="text/javascript"></script>
</head>
<body>
	<%@ include file="/common/toast.jsp"%>
	<form name="form1" method="post" action="/employee/save"
		id="validator_form" enctype="multipart/form-data">
		<table class="BasicinfoAdd">
			<caption>员工基本信息</caption>
			<tr>
				<td class="BasicinfoTdLeft"><span class="xing">*</span>姓名</td>
				<td class="BasicinfoTdRight"><input type="text" maxlength="10"
					name="employee.Name" value="${employee.Name}" id="txtName"
					class="validate[required]" style="width: 250px;" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft"><span class="xing">*</span>照片</td>
				<td class="BasicinfoTdRight"><img id="imgPhoto"
					src="${resource}/Common/Global/images/Joincase.jpg"
					style="border-width: 0px; width: 140px; height: 185px; border-width: 0px;" />
					<input type="file" name="file_upload" id="file_upload" /></td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft"><span class="xing">*</span>性别</td>
				<td class="BasicinfoTdRight"><input id="rdbMale" type="radio"
					name="employee.Sex" value="0"
					<c:if test="${employee.Sex==0}">checked="checked" </c:if> /><label
					for="rdbMale">男</label> <input id="rdbFemale" type="radio"
					name="employee.Sex" value="1"
					<c:if test="${employee.Sex==0}">checked="checked" </c:if> /><label
					for="rdbFemale">女</label>
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft"><span class="xing">*</span>出生日期</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.Birthday" value="${employee.Birthday}"
					id="txtBirthday" readonly="readonly" class="Wdate ym"
					style="width: 250px;"
					onfocus="WdatePicker({readOnly:true,
                                          dateFmt:'yyyy-MM-dd',
                                          isShowToday:false,
                                          maxDate:'%y-%M-%d'
                             })" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft"><span class="xing">*</span>身份证号码</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.IdCard" value="${employee.IdCard}" maxlength="18"
					id="txtIdCard" class="validate[required,custom[idcard]]"
					style="width: 250px;" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft"><span class="xing">*</span>手机号码</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.Mobile" value="${employee.Mobile}" maxlength="11"
					id="txtMobile" class="validate[required,custom[telphone]]"
					style="width: 250px;" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft"><span class="xing">*</span>邮件</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.Email" value="${employee.Email}" maxlength="30"
					id="txtEmail" class="validate[required,custom[email]]"
					style="width: 250px;" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft"><span class="xing">*</span>籍贯</td>
				<td class="BasicinfoTdRight"><select name="employee.Province"
					id="ddlProvince" class="ddlProvince"
					onchange="getAeraByParentId('#ddlProvince','#dllCity','#ddlDistrict');">
						<option
							<c:if test="${employee.Province ==-1}">selected="selected" </c:if>
							value="-1">请选择</option>
						<c:forEach var="province" items="${provinces}">
							<option
								<c:if test="${employee.Province==province.Id}">selected="selected"</c:if>
								value="${province.Id}">${province.AreaName}</option>
						</c:forEach>
				</select> <select name="employee.City" id="dllCity" class="ddlCity"
					onchange="getAeraByParentId('#dllCity','#ddlDistrict','');">
						<option value='-1'>请选择</option>
				</select> <select name="employee.District" id="ddlDistrict"
					class="ddlDistrict">
						<option value='-1'>请选择</option>
				</select>
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft">家庭住址</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.Address" value="${employee.Address}" maxlength="50"
					id="txtAddress" style="width: 250px;" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft">毕业院校</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.Institution" value="${employee.Institution}"
					maxlength="30" id="txtInstitution" style="width: 250px;" /></td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft">毕业时间</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.GraduationTime" value="${employee.GraduationTime}"
					id="txtGraduationTime" readonly="readonly" class="Wdate ym"
					style="width: 250px;"
					onfocus="WdatePicker({readOnly:true,
                                          dateFmt:'yyyy-MM-dd',
                                          isShowToday:false,
                                          maxDate:'%y-%M-%d'
                             })" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft">专业</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.Major" value="${employee.Major}" maxlength="20"
					id="txtMajor" style="width: 250px;" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft">学历</td>
				<td class="BasicinfoTdRight"><select name="employee.Education"
					id="ddlEducation">
						<option
							<c:if test="${employee.Education ==-1}">selected="selected" </c:if>
							value="-1">请选择</option>
						<c:forEach var="education" items="${educations}">
							<option
								<c:if test="${employee.Education==education.Id}">selected="selected"</c:if>
								value="${education.Id}">${education.ParamText}</option>
						</c:forEach>
				</select>
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft">报到时间</td>
				<td class="BasicinfoTdRight"><input type="text"
					name="employee.ReportTime" value="${employee.ReportTime}"
					id="txtReportTime" readonly="readonly" class="Wdate ym"
					style="width: 250px;"
					onfocus="WdatePicker({readOnly:true,
                                          dateFmt:'yyyy-MM-dd',
                                          isShowToday:false,
                                          maxDate:'%y-%M-%d'
                             })" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft">职称</td>
				<td class="BasicinfoTdRight"><input name="txtPosition"
					type="text" name="employee.Position" value="${employee.Position}"
					maxlength="20" id="txtPosition" style="width: 250px;" />
				</td>
			</tr>
			<tr>
				<td class="BasicinfoTdLeft">技能等级</td>
				<td class="BasicinfoTdRight"><select name="ddlSkillRank"
					id="ddlSkillRank">
						<option
							<c:if test="${employee.SkillRank ==-1}">selected="selected" </c:if>
							value="-1">请选择</option>
						<c:forEach var="skillRank" items="${skillRanks}">
							<option
								<c:if test="${employee.SkillRank==skillRank.Id}">selected="selected"</c:if>
								value="${skillRank.Id}">${skillRank.ParamText}</option>
						</c:forEach>
				</select>
				</td>
			</tr>
		</table>
		<input type="hidden" name="parentTabTile" id="parentTabTile"
			value="${parentTabTile}" />
		<div class="btn_station">
			<input type="submit" name="btnSave" value="保存" id="btnSave"
				class="CancelSearchBtn" /> <input id="btnReturn" type="button"
				class="CancelSearchBtn" value="返回" />
		</div>
	</form>
</body>
</html>